const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const personSchema = new Schema({
    name: {
        type: String,
        required: true,
    },
    age: {
        type: Number,
        default: 0,
    },
    skills: {
        type: String,
        default: '',
    },
    avatars: {
        type: String,
        default: '',
    }

}, {
    timestamps: true,
});

const Person = mongoose.model('person', personSchema);

module.exports = Person;